package com.situ.team5.kzq.power.service;

import com.situ.team5.kzq.power.dao.QxDAO;
import com.situ.team5.pojo.ConfigMajor;
import com.situ.team5.pojo.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class QxServiceImpl implements QxService{
    @Autowired
    QxDAO dao;
    @Override
    public List<Map> User_config_majorSelectAll() {
        return dao.User_config_majorSelectAll();
    }

    @Override
    public List<Map> config_majorSelectALL() {
       return  dao.config_majorSelectALL();
    }

    @Override
    public void users_Insert(Users u) {
        dao.users_Insert(u);
    }
//用户修改
    @Override
    public Map users_Update(int id) {
       return  dao.users_Update(id);
    }

    @Override
    public void user_update2(Users s) {
        dao.users_Update2(s);
    }
//删除
    @Override
    public void users_Delete(int id) {
        dao.users_Delete(id);
    }
}
